projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8568838
)
(getdefdir): Don't return failure indication when
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 29 Jul 1999 11:01:50 +0000
(11:01 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 29 Jul 1999 11:01:50 +0000
(11:01 +0000)
_fixpath sets errno to ENOSYS.
src/msdos.c
patch
|
blob
|
history
diff --git
a/src/msdos.c
b/src/msdos.c
index 24edf9c59dc50360faf926104d8b416397c01fd0..d43ce1ac7980a4b120e6705602cae0bd6e4ae91a 100644
(file)
--- a/
src/msdos.c
+++ b/
src/msdos.c
@@
-2831,7
+2831,9
@@
getdefdir (drive, dst)
*p = '\0';
errno = 0;
_fixpath (in_path, dst);
- if (errno)
+ /* _fixpath can set errno to ENOSYS on non-LFN systems because
+ it queries the LFN support, so ignore that error. */
+ if ((errno && errno != ENOSYS) || *dst == '\0')
return 0;
msdos_downcase_filename (dst);